<template>
	<view style="text-align: center;">
		<image class="win-icon" src="../../static/images/mine/icon_zhifuchenggong.png" mode=""></image>
		<view class="win-text">{{$t('shop').兑换成功}}</view>
		<view class="align-center justify-center">
			<view class="win-btn" @click="goBtn(0)">{{$t('shop').去首页}}</view>
			<view class="win-btn" style="margin-left: 30rpx;" @click="goBtn(1)">{{$t('shop').查看订单}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},

		onLoad() {
			this.$store.dispatch('getuserInfo')
			uni.setNavigationBarTitle({
				title: this.$t('shop').支付结果
			})
		},
		methods: {
			goBtn(val) {
				if (val == 0) {
					uni.switchTab({
						url: "/pages/index/index"
					})
				} else {
					uni.navigateTo({
						url: '/pages/mine/order-list'
					})
				}
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #FFFFFF;
	}

	.win-icon {
		width: 140rpx;
		height: 168rpx;
		margin: 100rpx auto 24rpx;
	}

	.win-text {
		color: #2A2A2A;
		font-size: 36rpx;
		font-weight: bold;
		margin-bottom: 56rpx;
	}

	.win-btn {
		width: 300rpx;
		height: 68rpx;
		color: #2A2A2A;
		font-size: 30rpx;
		text-align: center;
		line-height: 68rpx;
		border-radius: 100rpx;
		border: 2rpx solid #2A2A2A;
	}
</style>